// import 'dart:io';

import 'package:flutter/material.dart';
// import 'package:flutter_inappwebview/flutter_inappwebview.dart';

import 'package:get/get.dart';

import 'app/routes/app_pages.dart';

void main() {
  // _initWebView();
  runApp(
    GetMaterialApp(
      title: "Application",
      initialRoute: AppPages.INITIAL,
      getPages: AppPages.routes,
      debugShowCheckedModeBanner: false,
    ),
  );
}

// Future<void> _initWebView() async {
//   WidgetsFlutterBinding.ensureInitialized();
//   if (Platform.isAndroid) {
//     await AndroidInAppWebViewController.setWebContentsDebuggingEnabled(true);

//     var swAvailable = await AndroidWebViewFeature.isFeatureSupported(
//         AndroidWebViewFeature.SERVICE_WORKER_BASIC_USAGE);
//     var swInterceptAvailable = await AndroidWebViewFeature.isFeatureSupported(
//         AndroidWebViewFeature.SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST);

//     if (swAvailable && swInterceptAvailable) {
//       AndroidServiceWorkerController serviceWorkerController =
//           AndroidServiceWorkerController.instance();

//       serviceWorkerController.serviceWorkerClient = AndroidServiceWorkerClient(
//         shouldInterceptRequest: (request) async {
//           print(request);
//           return null;
//         },
//       );
//     }
//   }
// }
